package com.poh.service;

import com.poh.pojo.Homework;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HomeworkService {
    int addHomework(Homework homework);
    int updateHomework(Homework homework);
    int deleteHomework(@Param("homeworkId") String homeworkId);
    List<Homework> queryHomeworkByCourseId(int courseId);

    int releaseHomework(Homework homework);
    Homework queryHomeworkById(String homeworkId);
    List<Homework> queryHomeworkByCourseIdWithoutScore(int courseId);
    int updateHomeworkStatusById(String homeworkId, int homewrokStatus);
}
